﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MylambdaLinqDemo
{
    /// <summary>
    /// 学生实体
    /// </summary>
    public class Student
    {
        public int Id { get; set; }
        public int ClassId { get; set; }
        public string? Name { get; set; }
        public int Age { get; set; }
         

        /// <summary>
        /// 学习高级开发
        /// </summary>
        public void Study()
        {
            Console.WriteLine($"{Id} {Name}跟着Richard老师学习.net高级开发");
        }


        public void StudyFramework()
        {
            Console.WriteLine($"{Id} {Name}跟着Eleven老师学习如何成为一个优秀的架构师~~");
        }


    }

    public class ChildStudent : Student
    {
        public int Info { get; set; }

        public int DescrptionInfo; 
    }

    /// <summary>
    /// 班级实体
    /// </summary>
    public class Class
    {
        public int Id { get; set; }
        public string ClassName { get; set; }
    }
}
